<?php

use yii\helpers\Html;
use yii\widgets\ActiveForm;

/* @var $this yii\web\View */
/* @var $model backend\modules\home\models\Qikan */
/* @var $form yii\widgets\ActiveForm */
?>

<div class="qikan-form">

    <?php $form = ActiveForm::begin(); ?>
    <div class="row">
        <div class="col-md-6">
            <?= $form->field($model, 'title')->textInput(['maxlength' => true]) ?>

            <?= $form->field($model, 'intro')->widget('common\widgets\ueditor\Ueditor',[
                'options'=>[
                    // 'initialFrameWidth' => '100%',
                ]
            ]) ?>

            <?= $form->field($model, 'status')->dropDownList(['1'=>'发布中','0'=>'未发布']) ?>

            <div class="form-group">
                <?= Html::submitButton('Save', ['class' => 'btn btn-success']) ?>
            </div>
        </div>

        <div class="col-md-6">

            <?= $form->field($model, 'content')->widget('common\widgets\ueditor\Ueditor',[
                'options'=>[
                    // 'initialFrameWidth' => '100%',
                ]
            ]) ?>


            <?= $form->field($model, 'order')->textInput() ?>

            <?= $form->field($model, 'image_path')->textInput(['maxlength' => true]) ?>

            <?= $form->field($model, 'keyword')->textInput(['maxlength' => true]) ?>

            <?= $form->field($model, 'desc')->textInput(['maxlength' => true]) ?>


        </div>

    </div>







    <?php ActiveForm::end(); ?>

</div>
